package com.guigu.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.guigu.pojo.Supplier;

import java.util.List;

/**
 * <p>
 * 供货商信息表 服务类
 * </p>
 *
 * @author Mr.Zhang
 * @since 2025 - 03 - 12
 */
public interface SupplierService extends IService<Supplier> {
    List<Supplier> getSupplierList(String companyName, String type, int page, int pageSize);

    int getSupplierCount(String companyName, String type);

    List<Supplier> getSupplierWithConsumerNicknameList(String companyName, String type, int page, int pageSize);

    int deleteSupplierById(Integer supplierId);

    int updateSupplier(Supplier supplier);

    List<Supplier> getPendingAndRejectedSupplierList(String companyName, int page, int pageSize, String checkTag);

    int getPendingAndRejectedSupplierCount(String companyName, String checkTag);
}
